package com.exercise.demo.delegate.dynamicDelegate.jdkDynamicDelegate;

import java.lang.reflect.Proxy;

/**
 * @author dale
 * @Date 2021-05-18 11:27
 **/
public class JdkProxyFactory {
    public static Object getProxy(Object target){
        return Proxy.newProxyInstance(target.getClass().getClassLoader(),target.getClass().getInterfaces(),new DebugInvocationHandler(target));
    }
}
